Hi Norman,
Mach3 doesn't document well what IsMoving() is based on and seems to vary based on Version. I haven't heard of any issue regarding this.
If you post your Mach3 Version, KMotion Version, Mach3 XML, Mach3 Home C program, and what you are doing to test IsMoving we can take a look at it.
Regards
TK
Group: DynoMotion |
Message: 12331 |
From: nkwok |
Date: 9/30/2015 |
Subject: Re: Home but Mach3 IsMoving() return true |
Tom,
I just wonder if you got a chance to review those info and found why Mach3 thinks the axis is still moving after home? Thanks again!
Regards, Norman
|
|
Group: DynoMotion |
Message: 12334 |
From: Tom Kerekes |
Date: 10/1/2015 |
Subject: Re: Home but Mach3 IsMoving() return true |
Hi Norman,
Sorry for the delay. We were able to reproduce the problem with IsMoving() but haven't been able to find what Mach3 is expecting. To my knowledge Mach3 doesn't document this.
There may be a work around using a Virtual I/O Bit (or KFLOP LED bit 46). You might clear this at the beginning of any homing and set it when homing of axis X has completed (See attached C Program).
Then in Mach3 Basic loop polling the Input bit instead of IsMoving(): rem Home Y DoButton( 23 )
rem Home X DoButton( 22 )
Do While Not IsActive (Input1) Sleep(100) Loop
Here is how to configure the Input1 in Mach3:
HTH Regards TK
Group: DynoMotion |
Message: 12341 |
From: nkwok |
Date: 10/2/2015 |
Subject: Re: Home but Mach3 IsMoving() return true |
Tom,
Thanks for your help again! That did the trick!
Regards, Norman
|
|
| |